#ifndef __MYSTDIO_H__
#define __MYSTDIO_H__

#include <string.h>
#define SIZE 1024

#define FLUSH_NOW 1
#define FLUSH_LINE 2
#define FLUSH_ALL 4


typedef struct IO_FILE
{
    int fileno;
    //int inbuffer[SIZE];//输入缓冲区
    //int in_pos;
    //想知道输入输出是什么类型
    //需要c语言scanf/printf去解释
    int flag;
    int outbuffer[SIZE];//输出缓冲区
    int out_pos;//左边是有效字符

}_FILE;

_FILE*_fopen(const char*filename,const char *flag);
int _fwrite(_FILE*pf,const char*msg,int len);
void _fclose(_FILE*fp);


#endif
